import 'package:factoryside/bean/distinguish_entity.dart';

distinguishEntityFromJson(DistinguishEntity data, Map<String, dynamic> json) {
	if (json['period'] != null) {
		data.period = json['period'].toString();
	}
	if (json['addstr'] != null) {
		data.addstr = json['addstr'].toString();
	}
	if (json['cityCode'] != null) {
		data.cityCode = json['cityCode'].toString();
	}
	if (json['districtCode'] != null) {
		data.districtCode = json['districtCode'].toString();
	}
	if (json['provinceCode'] != null) {
		data.provinceCode = json['provinceCode'].toString();
	}
	if (json['areaCode'] != null) {
		data.areaCode = json['areaCode'].toString();
	}
	if (json['province'] != null) {
		data.province = json['province'].toString();
	}
	if (json['bak'] != null) {
		data.bak = json['bak'].toString();
	}
	if (json['area'] != null) {
		data.area = json['area'].toString();
	}
	if (json['city'] != null) {
		data.city = json['city'].toString();
	}
	if (json['phone'] != null) {
		data.phone = json['phone'].toString();
	}
	if (json['district'] != null) {
		data.district = json['district'].toString();
	}
	if (json['name'] != null) {
		data.name = json['name'].toString();
	}
	return data;
}

Map<String, dynamic> distinguishEntityToJson(DistinguishEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['period'] = entity.period;
	data['addstr'] = entity.addstr;
	data['cityCode'] = entity.cityCode;
	data['districtCode'] = entity.districtCode;
	data['provinceCode'] = entity.provinceCode;
	data['areaCode'] = entity.areaCode;
	data['province'] = entity.province;
	data['bak'] = entity.bak;
	data['area'] = entity.area;
	data['city'] = entity.city;
	data['phone'] = entity.phone;
	data['district'] = entity.district;
	data['name'] = entity.name;
	return data;
}